function GetUrlParms() {
    let args = {};
    let query = location.search.substring(1);//获取查询串
    query = decodeURIComponent(query);
    let pairs = query.split("&");//在逗号处断开
    for (let i = 0; i < pairs.length; i++) {
        let pos = pairs[i].indexOf('=');//查找name=value
        if (pos === -1) continue;//如果没有找到就跳过
        let argName = pairs[i].substring(0, pos);//提取name
        let value = pairs[i].substring(pos + 1);//提取value
        args[argName] = unescape(value);//存为属性
    }
    return args;
}




